<h1><%= t(:migrate_data) %></h1>

<div id="migrate_form">
  
<% if params[:xml_file].blank? %>

  <p><%= t(:migrate_data_text) %></p>
  <% form_tag nil, { :multipart => true } do %>
    <p>
      <%= file_field_tag :xml_file %>
      <%= submit_tag t(:upload) %>
    </p>
  <% end %>

<% else %>

  <p class="migrate-result"><%= t(:migrate_result, @count.merge({ :time => @time })) %></p>

  <p><%= link_to '&laquo; ' + t(:back), :action => :migrate %></a></p>

<% end %>

</div>
